<% href = url_for(params_for(:action => :update_table, :escape => false).delete_if{|k,v| k == 'search'}) -%>
<%= form_tag href,
             :method => :post,
             :id => "searchForm",
             :class => 'dialog search'
%>
<fieldset>
  <h1>Search</h1>
  <%= link_to as_('Cancel'), {}, :type => "cancel", :class => "dialogButton leftButton submit" %>
  <%= link_to as_('Search'), {}, :type => "submit", :class => "dialogButton blueButton submit" %>
  <label>关键字:</label>
  <input type="text" name="search" value="<%= params[:search] -%>" input" id="<%= search_input_id %>" />
</fieldset>

</form>
